package com.atguigu.gmall.gmallweb;

import com.atguigu.gmall.api.MyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MyUserController {

    @Autowired
    MyService myService;

    @RequestMapping(value="getTest")
   // @HystrixCommand(fallbackMethod = "getTests")
    public String getTest(){
        String testa = myService.getTesta();
        return testa;
    }

//    @RequestMapping(value="getTests")
//    public String getTests(){
//        String testa = myService.getTesta();
//        return "web被容断了";
//    }

}
